
package com.work.db.entity;

import com.work.i18n.Messages;

public enum WorkDayFieldsEnum {
	DATE("date"), 
	COMMENT("comment"), 
	PRESENTS_TYPE("presentsType"), 
	PRESENTS("presents"), 
	LEAVE("leaveOfAbsence"), 
	OVERTIMES("overtimes");

	private String fieldName;
	
	WorkDayFieldsEnum(String fieldName)
	{
		this.fieldName = fieldName;
	}

	public String getFieldName()
	{
		return fieldName;
	}

	public void setFieldName(String name)
	{
		this.fieldName = name;
	}

	public String getFieldLabel() {
		return Messages.get(fieldName);
	}
}
